package org.walkframework.sample.business.sample.adapter.web.request;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 分页请求数据
 *
 * @author 尾生
 * @since 2024/4/9
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SamplePageQueryRequest extends PageRequest {

    @NotBlank
    private String name;

    private Long id;

    public SamplePageQueryRequest letName(String name) {
        this.name = name;
        return this;
    }

    public SamplePageQueryRequest letId(Long id) {
        this.id = id;
        return this;
    }
}
